package cn.iocoder.yudao.module.api.cms.qlink.dto;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import static cn.iocoder.yudao.module.api.cms.DictTypeConstants.QLINK_ACTION;
import static cn.iocoder.yudao.module.api.cms.DictTypeConstants.QLINK_IDENTIFY;

/**
 * <pre>
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 *  这里是文件说明
 * OOoO0OOoO0OOOooo0oOOOO0OOOOO0oooOO0ooOOO0Ooooo0OOOOo0ooooO0OOooo0Ooooo0OOOOO
 * </pre>
 *
 * @author 山野羡民（1032694760@qq.com）
 * @since 2025/04/16
 */
@Data
public class QlinkRespDTO {

    @Schema(description = "位置标识：首页九宫格（home_grid）、首页轮播图（home_carousel）、首页横幅（home_banner）", requiredMode = Schema.RequiredMode.REQUIRED, example = "home_banner")
    @DictFormat(QLINK_IDENTIFY)
    private String identify;

    @Schema(description = "自身标识：关于我们（about_us）、联系我们（contact_us）", example = "about_us")
    private String subIdentify;

    @Schema(description = "主标题", requiredMode = Schema.RequiredMode.REQUIRED, example = "尊享用户")
    private String title;

    @Schema(description = "副标题", example = "尊享用户权益，更多优惠……")
    private String subTitle;

    @Schema(description = "动作类型：无（none）、打开页面（page）、加载网页（web）、跳转小程序（miniapp）、拨打电话（phone）、播放视频（video）", requiredMode = Schema.RequiredMode.REQUIRED, example = "home_banner")
    @DictFormat(QLINK_ACTION)
    private String actionType;

    @Schema(description = "图片地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "./placeholder.png")
    private String picUrl;

    @Schema(description = "跳转链接")
    private String linkUrl;

}
